package com.example.smartgreenhouse.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartgreenhouse.entity.ThresholdHistory;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ThresholdHistoryMapper extends BaseMapper<ThresholdHistory> {
    @Select("SELECT * FROM threshold_history WHERE type = #{type} ORDER BY create_time DESC")
    List<ThresholdHistory> selectHistoryByType(String type);
}